import React, { Component } from 'react';
import '../../styles/my/LoginRegistration.scss'
import { withRouter } from 'react-router-dom';

import pic from "../../assets/user.png"

class LoginRegistration extends Component {
    toLogin() {
        this.props.history.push('/login');
    }
    render() {
        return (
            <div className='LoginRegistration'>
                {/* 登陆注册组件 */}
                <div className='userBox'>
                    <div className='imgBox'><img src={pic} alt="" /></div>
                    <div className='loginButton' onClick={() => { this.toLogin() }}>点击登录</div>
                </div>
            </div>
        );
    }
}

export default withRouter(LoginRegistration);